package test.ygqh.baby.service;

import java.util.ArrayList;
import java.util.List;

public class Client implements CSCallBack {

	private Server server;

	public Client(Server server) {
		this.server = server;
	}

	public void sendMsg(final String msg) {
		System.out.println("客户端：发送的消息为：" + msg);
		new Thread(new Runnable() {
			@Override
			public void run() {
				server.getClientMsg(Client.this, msg);
			}
		}).start();
		System.out.println("客户端：异步发送成功");
	}

	@Override
	public void process(String status) {
		System.out.println("客户端：服务端回调状态为：" + status);
	}
	public static void main(String[] args) {

		List<String> eventList = new ArrayList<String>();
		eventList.add("TEMPLATESENDJOBFINISH");
		eventList.add("LOCATION");
		eventList.add("kf_switch_session");
		System.out.println(eventList.contains("kf_switch_session"));
	
	}
}